package com.cyj.dream.visual.codegen.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Description: 数据源表
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.visual.codegen.model
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-09 10:46
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Data
@TableName("gen_datasource_conf")
@EqualsAndHashCode(callSuper = true)
public class GenDatasourceConf extends Model<GenDatasourceConf> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 名称--数据库名称
     */
    private String name;

    /**
     * jdbcurl 形如：jdbc:mysql://localhost:3306
     */
    private String url;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 更新
     */
    private LocalDateTime updateDate;

    /**
     * 删除标记
     */
    @TableLogic
    private String delFlag;

}

